package com.kw.sqlsession;

import com.kw.pojo.Configuration;

/**
 * Created by Medivh on 2020/5/8.
 * 愿我出走半生,归来仍是少年
 */
public class DefaultSqlSessionFactory implements  SqlSessionFactory {

    Configuration configuration ;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
